
package model;

public class Subject {
    private String subjectId;
    private String subjectName;
    private int noSession;
    private String description;

    public Subject(String subjectId, String subjectName, int noSession, String description) {
        this.subjectId = subjectId;
        this.subjectName = subjectName;
        this.noSession = noSession;
        this.description = description;
    }

    public Subject() {
    }

    public String getSubjectId() {
        return subjectId.toUpperCase();
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public int getNoSession() {
        return noSession;
    }

    public void setNoSession(int noSession) {
        this.noSession = noSession;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return subjectName;
    }
    
}
